package cn.iocoder.yudao.module.erp.service.purchaseplan.purchaseequipmentdetail;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.erp.controller.admin.purchaseplan.vo.purchaseequipmentdetail.PurchaseEquipmentDetailPageReqVO;
import cn.iocoder.yudao.module.erp.controller.admin.purchaseplan.vo.purchaseequipmentdetail.PurchaseEquipmentDetailSaveReqVO;
import cn.iocoder.yudao.module.erp.dal.dataobject.purchaseplan.purchaseequipmentdetail.PurchaseEquipmentDetailDO;

import javax.validation.Valid;
import java.util.List;

/**
 * 设备采购计划明细 Service 接口
 *
 * @author 芋道源码
 */
public interface PurchaseEquipmentDetailService {

    /**
     * 创建设备采购计划明细
     *
     * @param createReqVOS 创建信息
     * @return 编号
     */
    void createPurchaseEquipmentDetailBatch(@Valid List<PurchaseEquipmentDetailSaveReqVO> createReqVOS);

    /**
     * 更新设备采购计划明细
     *
     * @param updateReqVO 更新信息
     */
    void updatePurchaseEquipmentDetail(@Valid PurchaseEquipmentDetailSaveReqVO updateReqVO);

    /**
     * 删除设备采购计划明细
     *
     * @param id 编号
     */
    void deletePurchaseEquipmentDetail(Long id);

    /**
    * 批量删除设备采购计划明细
    *
    * @param ids 编号
    */
    void deletePurchaseEquipmentDetailListByIds(List<Long> ids);

    /**
     * 获得设备采购计划明细
     *
     * @param id 编号
     * @return 设备采购计划明细
     */
    PurchaseEquipmentDetailDO getPurchaseEquipmentDetail(Long id);

    /**
     * 获得设备采购计划明细分页
     *
     * @param pageReqVO 分页查询
     * @return 设备采购计划明细分页
     */
    PageResult<PurchaseEquipmentDetailDO> getPurchaseEquipmentDetailPage(PurchaseEquipmentDetailPageReqVO pageReqVO);

    void deleteByPlanId(Long planId);

    List<PurchaseEquipmentDetailDO> getByPlanId(Long planId);
}